//
//  Friend.swift
//  AppleDemo
//
//  Created by Just 花语 on 2025/10/27.
//
import Foundation
import SwiftData

@Model
class Friend{
    var name: String
    var birthDate: Date
    init(name: String, birthDate: Date){
        self.name = name
        self.birthDate = birthDate
    }
    var isBirthdayToday:Bool{
        Calendar.current.isDateInToday(birthDate)
    }
        
}

